package com.example.demo.dao;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import java.util.List;
import com.example.demo.entity.Notify;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 用户通知表,包含了所有用户的消息 Mapper 接口
 * </p>
 *
 * @author hanfei
 * @since 2021-05-21
 */
@Repository
public interface NotifyMapper extends BaseMapper<Notify> {
        List<Notify> findByKey(Pagination page, @Param("key") String key);
        List<Notify> findByKeyAndAll(Pagination page, @Param("key") String key,@Param("entity") Notify entity);
}
